package com.sprucetec;

import java.util.HashSet;
import java.util.Set;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@EnableConfigurationProperties
@ComponentScan("com.sprucetec")
@EnableScheduling
@MapperScan("com.sprucetec.live.mapper")
@EnableTransactionManagement
@EnableCaching
public class LiveSupportMain {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(LiveSupportMain.class);
        Set<Object> sourcesSet = new HashSet<Object>();
        sourcesSet.add("classpath:spring/*.xml");
        application.setSources(sourcesSet);
        application.run(args);
    }

}